<%--
  Created by IntelliJ IDEA.
  User: taohj
  Date: 2014/6/29
  Time: 18:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!Doctype html>
<html>
<head>
    <base href="<%=basePath%>">
    <title>政府数据开放平台</title>
    <jsp:include page="../../commons/include.jsp"/>

    <link href="/resources/css/lib.css" rel="stylesheet">


    <style>


        * {
            font-family: '宋体';
        }

        #main {

            -webkit-box-shadow: 0 4px 61px rgba(0, 0, 0, 0.1);
            background: #FFF;
            width: 1000px;
            font-family: '宋体';
            height: 1500px;;
            margin-top: 50px;
        }

        #menu a {
            color: #555;
        }

        #menu a:hover {
            background: #FFFFFF;
            height: 40px;

        }

        #menu ul {
            border: none;
        }

        ._title a:hover {
            color: #000000;
        }

        div a:hover {
            color: #000000;
        }

        table, table td, table th {
            border: 1px solid rgb(221, 221, 221);
            border-collapse: collapse;
            line-height: 34px;
            font-size: 12px;
        }


    </style>

    <script>
        $(function () {
            $("table").find("tr").each(function (index) {
                $(this).find("td").css("padding", "6px 10px");
                if (index) {
                    $(this).find("td:first-child").css("fontWeight", "bold");
                    if (index % 2 == 0) {
                        $(this).css("background", "rgb(242,242,242)");
                    }

                } else {
                    $(this).css("background", "rgb(140,160,166)");
                }
            });
        });
    </script>

</head>
<body>


<jsp:include page="../../commons/top.jsp"/>

<div class="main">


    <div style="padding: 20px  30px;">
        <div style="text-align: left;">
            <div style="line-height: 30px; font-size: 26px; font-weight:bold;  padding-left: 0px; padding-top: 30px;">${requestScope.data.title}</div>


            <div style="margin-top: 20px;">
                <div style="font-size: 18px; font-weight: bold;">简介</div>
                <div style="color:rgb(140,146,146); min-height: 60px; font-size: 14px;;">${requestScope.data.description}</div>
            </div>
        </div>
    </div>

    <div style="padding-left: 50px;">
        <table>


            <tr>
                <td width="100">标题：</td>
                <td width="700">${requestScope.data.title}</td>
            </tr>


            <tr>
                <td>创建时间：</td>
                <td><fmt:formatDate value="${data.createTime}" pattern="yyyy-MM-dd HH:mm"/></td>
            </tr>

            <tr>
                <td>文件格式：</td>
                <td>${requestScope.data.fileFormat}</td>
            </tr>

            <tr>
                <td>授权信息：</td>
                <td>${requestScope.data.license}</td>
            </tr>

            <tr>
                <td>标签：</td>
                <td>${requestScope.data.tags}</td>
            </tr>

            <tr>
                <td>是否公开：</td>
                <td>${requestScope.data.visibility.name}</td>
            </tr>

            <tr>
                <td>来源：</td>
                <td><c:choose><c:when
                        test="${not empty requestScope.data.org}">${requestScope.data.org.name}</c:when><c:otherwise>无</c:otherwise></c:choose></td>
            </tr>

            <tr>
                <td>存储形式：</td>
                <td><c:choose><c:when test="${requestScope.data.storage.id==132}">外链接</c:when><c:when
                        test="${requestScope.data.storage.id==131}">本地</c:when>
                    <c:otherwise>未知</c:otherwise></c:choose></td>
            </tr>


            <tr>
                <td>当前版本：</td>
                <td>${requestScope.data.version}</td>
            </tr>

            <tr>
                <td>唯一编码：</td>
                <td>${requestScope.data.GUID}</td>
            </tr>

            <tr>
                <td>地址：</td>
                <td><a href="${requestScope.basePath}${requestScope.data.url}" target="_blank"
                       style="color: rgb(175,149,200);">URL:${requestScope.basePath}${requestScope.data.url}</a></td>
            </tr>
        </table>

    </div>


</div>


</div>
<jsp:include page="../../commons/buttom.jsp"/>
</body>
</html>
